package com.xyf.sys.mapper;

import com.xyf.sys.domain.OrderAddress;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface OrderAddressMapper {
    int deleteByPrimaryKey(Long id);

    int insert(OrderAddress record);

    int insertSelective(OrderAddress record);

    OrderAddress selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(OrderAddress record);

    int updateByPrimaryKey(OrderAddress record);

    List<OrderAddress> selectByOrderProductId(@Param("orderProductId") String productId);

    List<OrderAddress> selectByOrderId(@Param("orderId") String orderId);
}